﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    ViewData["Title"] = "个人资料";
}

<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header bg-info text-white">
                    <h4 class="mb-0">用户信息</h4>
                </div>
                <div class="card-body">
                    @if (!string.IsNullOrEmpty(ViewBag.HeadImgUrl))
                    {
                        <div class="text-center mb-3">
                        </div>
                    }

                    <p><strong>OpenID:</strong> @ViewBag.OpenId</p>
                    <p><strong>昵称:</strong> @ViewBag.Nickname</p>
                    <p><strong>UnionID:</strong> @(ViewBag.UnionId ?? "无")</p>

                    <div class="mt-3">
                        <a href="@Url.Action("Index", "Home")" class="btn btn-secondary">返回首页</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>